home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / virus / v95310e4.zip / DATA.4 / EDisk / EDAT.4 < prev    next >
Text File  |  1997-07-21  |  10KB  |  319 lines

  1. @echo off
  2. SET ERROR10=0
  3. SET ERROR17=0
  4. :SelfCheckOK
  5. CLS
  6. ECHO *
  7. ECHO *
  8. ECHO *                  MCAFEE VIRUS REMOVAL TOOL
  9. ECHO *
  10. ECHO *    THIS DISKETTE IS USED TO SIMPLIFY THE TASK OF REMOVING A
  11. ECHO *    VIRUS FROM YOUR COMPUTER.  IT IS IMPORTANT TO ENSURE THAT
  12. ECHO *    YOU COLD BOOTED YOUR MACHINE BEFORE USING THIS DISKETTE.
  13. ECHO *    A COLD BOOT MEANS THAT THE POWER TO THE COMPUTER IS TURNED
  14. ECHO *    OFF AND THEN TURNED ON WITH THIS DISKETTE IN THE A: DRIVE.
  15. ECHO *
  16. ECHO *
  17. cls
  18. cls
  19. ECHO  Did you cycle the power off an on? 
  20. A:\GETREPLY.EXE If "Yes" insert Disk 2. (Y/N)? ;yn
  21. IF ERRORLEVEL 2 GOTO NoCyclePWR
  22. cls
  23. :DoScan
  24. cls
  25. CLS
  26. ECHO *
  27. cls
  28. ECHO *
  29. ECHO *            MCAFEE VIRUS REMOVAL TOOL
  30. ECHO *
  31. ECHO *    WE ARE NOW READY TO BEGIN SCANNING YOUR DRIVE.  
  32. ECHO *
  33. ECHO *    MCAFEE WILL PERFORM A SCAN OF ALL LOCAL DRIVES FOR VIRUSES 
  34. ECHO *    AND ATTEMPT TO CLEAN ANY INFECTIONS THAT ARE FOUND.  CERTAIN
  35. ECHO *    VIRUSES MAY REQUIRE YOU TO REBOOT AND PERFORM THIS SCAN
  36. ECHO *    AGAIN.  IF THE SCAN STALLS FOR MORE THAN 30 SECONDS THEN TURN
  37. ECHO *    THE POWER OFF AND THEN BACK ON AGAIN WITH DISK #1 IN 
  38. ECHO *    THE A: DRIVE.
  39. ECHO *
  40. ECHO *
  41. PAUSE
  42.  
  43. CLS
  44. SCAN /ADL /ALL /CLEAN /NOBREAK
  45. PAUSE
  46.  
  47. :DoErrors
  48. IF ERRORLEVEL 100 GOTO ErrorDOS
  49. IF ERRORLEVEL 17 GOTO NoTarget
  50. IF ERRORLEVEL 16 GOTO BadAccess
  51. IF ERRORLEVEL 15 GOTO BadScanEXE
  52. IF ERRORLEVEL 14 GOTO Update
  53. IF ERRORLEVEL 13 GOTO VirusFound
  54. IF ERRORLEVEL 12 GOTO BadClean
  55. IF ERRORLEVEL 11 GOTO ProgError
  56. IF ERRORLEVEL 10 GOTO VirusInMemory
  57. IF ERRORLEVEL 8  GOTO MissingDat
  58. IF ERRORLEVEL 6  GOTO ProgError
  59. IF ERRORLEVEL 5  GOTO ProgError
  60. IF ERRORLEVEL 3  GOTO BadAccess
  61. IF ERRORLEVEL 2  GOTO BadDats
  62. IF ERRORLEVEL 1  GOTO BadAccess
  63. IF ERRORLEVEL 0  GOTO Nada
  64.  
  65.  
  66. :Nada
  67. CLS
  68. IF %ERROR10%==1 GOTO ExitNoMem
  69. ECHO *
  70. ECHO *
  71. ECHO *    No viruses were found in memory, or on any local drives!
  72. ECHO *    When the prompt returns you should remove this diskette
  73. ECHO *    and reboot your system.
  74. ECHO *
  75. ECHO *
  76. GOTO Exit
  77.  
  78. :BadAccess
  79. CLS
  80. ECHO *
  81. ECHO *
  82. ECHO *    An error has occurred while trying to access one of your local
  83. ECHO *    drives.  Please reboot the machine with the boot disk in the A: 
  84. ECHO *    drive and reattempt the procedure.  
  85. ECHO *
  86. GOTO Exit
  87.  
  88. :BadDats
  89. CLS
  90. ECHO *
  91. ECHO *    An error occurred while trying to read the data files.  This 
  92. ECHO *    could mean that either the diskette is damaged, has been 
  93. ECHO *    modified or the floppy drive is slightly misaligned.  If you 
  94. ECHO *    have a second machine you could boot from the boot and verify 
  95. ECHO *    if the floppy drive is OK.  Since the diskette is write protected
  96. ECHO *    it is unlikely that the file(s) were modified unless the write-
  97. ECHO *    protection was forcefully over-ridden.
  98. ECHO *
  99. ECHO *
  100. ECHO *
  101. GOTO Exit
  102.  
  103. :ProgError
  104. CLS
  105. ECHO *
  106. ECHO *
  107. ECHO *    There has been a problem with the VirusScan program.
  108. ECHO *                                                          
  109. ECHO *    Please cold boot this system again with the boot disk and try
  110. CHO *    the scan again. If this problem continues please consult
  111. ECHO *    your manual on how to create a new Emgergency Disk.
  112. ECHO *
  113. ECHO *
  114. GOTO Exit
  115.  
  116. :MissingDat
  117. CLS
  118. ECHO *
  119. ECHO *
  120. ECHO *    Files are missing.  There is a good chance that this 
  121. ECHO *    diskette may have been modified.  Please cold boot this system 
  122. ECHO *    again with the boot disk and try the scan again. If this problem 
  123. ECHO *    continues please consult your manual on how  to get a new copy
  124. ECHO *    of this disk.
  125. ECHO *
  126. ECHO *
  127.  
  128. GOTO Exit
  129.  
  130.  
  131. :VirusInMemory
  132. CLS
  133. ECHO *
  134. ECHO *
  135. ECHO *        W       A       R       N       I       N       G
  136. ECHO *        
  137. ECHO *    The signature of a virus was found in memory while performing
  138. ECHO *    the memory scan.  It is unlikely that disk #1 is infected
  139. ECHO *    as long as the write protect tab on the diskette was never
  140. ECHO *    bypassed.  There are other possibilities.  You should check
  141. ECHO *    the boot sequence in CMOS.  The hardware documentation that
  142. ECHO *    came with your computer should discuss how to access this area.
  143. ECHO *    Ensure that the sequence is A: first THEN C:.
  144. ECHO *
  145. ECHO *    It is also possible that you have a hard drive controller that
  146. ECHO *    is placing an IMAGE of the infected Boot Record into memory.
  147. ECHO *    If this is the case then the virus may not be active and could
  148. ECHO *    possibly be removed.
  149. ECHO *
  150. ECHO *
  151. A:\GETREPLY.EXE Would you like to attempt anyway (Y/N)? ;yn
  152. IF ERRORLEVEL 2 GOTO Exit
  153. GOTO ScanNOMEM
  154.  
  155. :BadClean
  156. CLS
  157. ECHO *
  158. ECHO *
  159. ECHO *    A problem has occurred in trying to clean a virus. Either the
  160. ECHO *    CLEAN.DAT file is missing or corrupted or VirusScan was unable 
  161. ECHO *    to clean the virus. Please check this diskette with the Validate
  162. ECHO *    program included to make sure the files are all there and are 
  163. ECHO *    not corrupted. If the files are ok, please cold boot the machine 
  164. ECHO *    with the boot diskette and try the scan again. If the file will still 
  165. ECHO *    not clean, you will need to delete them.
  166. ECHO *
  167. GOTO Exit
  168.  
  169. :VirusFound
  170. CLS
  171. ECHO *
  172. ECHO *        W       A       R       N       I       N       G
  173. ECHO *
  174. ECHO *    One or more viruses were found on this computer. In many cases
  175. ECHO *    the viruses were cleaned at the same time by the program. It 
  176. ECHO *    is recommended that you cold boot this machine with this 
  177. ECHO *    disk again and have it run another scan to insure that the 
  178. ECHO *    computer is clean and no viruses were missed or were not cleaned.
  179. ECHO *
  180. ECHO *    In some cases, an infected file can not be cleaned without
  181. ECHO *    damaging the file.  It will then be necessary to identify and
  182. ECHO *    delete the infected file.  Please refer to the manual for
  183. ECHO *    additional information on /Report {filename} to identify the
  184. ECHO *    infected file and /Del to delete the file.  Then restore the file
  185. ECHO *    from a backup.
  186. ECHO *
  187. GOTO Exit
  188.  
  189. :Update
  190. CLS
  191. ECHO *
  192. ECHO *
  193. ECHO *    Your virus data files are getting old and you should update 
  194. ECHO *    them.  This is not a major problem.  However, there may be 
  195. ECHO *    viruses on this machine that are not detectable by this version 
  196. ECHO *    of the software.  By updating your software you are getting 
  197. ECHO *    the most protection possible.  Please consult your manual for 
  198. ECHO *    update information.
  199. ECHO *
  200. ECHO *
  201. GOTO Exit
  202.  
  203. :BadscanEXE
  204. CLS
  205. ECHO *
  206. ECHO *
  207. ECHO *    The self-check has failed.  This may be caused by a damaged 
  208. ECHO *    or modified SCAN.EXE file or problem with the floppy drive. 
  209. ECHO *    First, at the A: prompt run VALIDATE SCAN.EXE and verify the 
  210. ECHO *    validation code against the code in the PACKING.LST file. 
  211. ECHO *    The PACKING.LST file will be displayed on exit.
  212. ECHO *
  213. ECHO *
  214. PAUSE
  215. GOTO AbortSLFCHK
  216.  
  217. :NoTarget
  218. IF %ERROR17%==1 GOTO EncManualRemove
  219. CLS
  220. ECHO *
  221. ECHO *
  222. ECHO *    Scan has reported that there is no target specified for 
  223. ECHO *    scanning.  This could be due to an encrypting virus or a 
  224. ECHO *    possible hardware issue.  Another scan will be attempted 
  225. ECHO *    to remedy the situation.
  226. ECHO *
  227. ECHO *    Please stand by...
  228. ECHO *
  229. ECHO *
  230. GOTO ScanCDrive
  231.  
  232. :ErrorDOS
  233. CLS
  234. ECHO *
  235. ECHO *
  236. ECHO *    A DOS error has occurred.  Please consult your DOS manual 
  237. ECHO *    for details or contact your DOS vendor for assistance.
  238. ECHO *
  239. ECHO *
  240. GOTO Exit
  241.  
  242.  
  243.  
  244.  
  245. :AbortSLFCHK
  246. CLS
  247. TYPE PACKING.LST
  248. GOTO Exit
  249.  
  250. :NoCyclePwr
  251. CLS
  252. ECHO *
  253. ECHO *
  254. ECHO *    It is strongly recommended that you put the boot disk in 
  255. ECHO *    the A: drive and turn the power to the computer off and then 
  256. ECHO *    on.  Some viruses are capable of surviving a warm boot or a
  257. ECHO *    CTRL+ALT+DEL by remaining in memory.
  258. ECHO *
  259. ECHO *
  260. GOTO Exit
  261.  
  262. :ScanNOMEM
  263. CLS
  264. ECHO *
  265. ECHO *
  266. ECHO *    If no virus is found on the hard drive(s) then most likely 
  267. ECHO *    the virus is active and it is a stealth type virus.  If a 
  268. ECHO *    virus is found it is recommended that you boot with the boot 
  269. ECHO *    disk a second time to ensure the virus has been removed.
  270. ECHO *
  271. ECHO *
  272. SET ERROR10=1
  273. SCAN /ADL /ALL /CLEAN /NOMEM /NOBREAK
  274. GOTO DoErrors
  275.  
  276. :ScanCDrive
  277. SET ERROR17=1
  278. SCAN C: /NOBREAK /ALL
  279. GOTO DoErrors
  280.  
  281. :EncManualRemove
  282. CLS
  283. ECHO *
  284. ECHO *
  285. ECHO *    The same error has occurred again.  If this is due to a virus 
  286. ECHO *    you may need to perform a manual removal in this case.  It 
  287. ECHO *    is also possible that you are experiencing some hardware issues.
  288. ECHO *    Try running a disk diagnostic program to see if it can clear up 
  289. ECHO *    the problem.
  290. ECHO *
  291. ECHO *
  292. GOTO Exit
  293.  
  294. :ExitNoMem
  295. CLS
  296. ECHO *
  297. ECHO *
  298. ECHO *    Scan did not find a virus on the second pass.  However, because 
  299. ECHO *    a virus was found in memory it is possible that there may still 
  300. ECHO *    be a virus active on the hard drive.  Again, as long as the write 
  301. ECHO *    protect tab on disk #1 was never bypassed, it is unlikely 
  302. ECHO *    that it is infected.  There are other possibilities why 
  303. ECHO *    traces of a virus are still in memory.  
  304. ECHO *
  305. ECHO *    You should check the boot sequence in CMOS.  The hardware 
  306. ECHO *    documentation that came with your computer should discuss 
  307. ECHO *    how to access this area.  Ensure that the sequence is A: 
  308. ECHO *    first THEN C:  Try cold booting your system again using the boot diskette
  309. ECHO *    and run another scan.  If a virus continues to show up in memory, 
  310. ECHO *    then there may be a compatibility issue with some hardware 
  311. ECHO *    in the computer.
  312. ECHO *
  313. ECHO *
  314. GOTO Exit
  315.  
  316. @ECHO OFF
  317. :Exit
  318. echo exit
  319. E